
using System;
using System.Collections.Generic;
using FairyGUI;
namespace Wwo
{
    public class YeShengItem : GButton
    {
        GLoader m_Sex;
        GButton m_BuLie;
        GTextField m_WeiXian;

        public override void ConstructFromXML(FairyGUI.Utils.XML cxml)
        {
            base.ConstructFromXML(cxml);
            
            m_Sex = this.GetChild("Sex").asLoader;
            m_BuLie = this.GetChild("BuLie").asButton;
            m_WeiXian = this.GetChild("WeiXian").asTextField;
        }

        public void setBulie(bool e)
        {
            m_BuLie.selected = e;
        }

        public void setSex(string icon)
        {
            m_Sex.icon = icon;
        }

        public void setWeiXian(string t)
        {
            m_WeiXian.text = t;
        }
    }
}
